package com.demiroot.server.pages;

import java.net.URL;

import com.demiroot.server.HTTPResponse;
import com.demiroot.server.HTTPResquest;
import com.demiroot.server.PhysicalItemResponse;

public class PhysicalPageDefault implements Page {

	@Override
	public HTTPResponse getPage(HTTPResquest request) {
		try {
			return new PhysicalItemResponse(new URL(request.getHeader().getURI()));
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
	
}
